import * as fs from "fs";
import * as path from "path";

const appDirectory = fs.realpathSync(process.cwd());
const resolvePath = (relativePath: string) => path.resolve(appDirectory, relativePath);
const isDev = process.env.NODE_ENV === "development" ? true : false;
const AppConfig = {
    dev: isDev,
    src: resolvePath("src"),
    build: resolvePath("build"),
    assets: resolvePath("src/assets"),
    favicon: resolvePath("src/favicon.ico"),
    indexJS: resolvePath("src/index.tsx"),
    indexName: "index.html",
    indexHtml: resolvePath("src/index.html"),
    nodeModules: resolvePath("node_modules")
};
export default AppConfig;
